<!-- File: app/views/m_avoidance_word/add.ctp -->
<?php 
/**** Message ****/
echo $this->Javascript->link('add-word.js', true);
echo $this->Javascript->link('functions.js', true);
?>

	<?php echo $this->Form->create('MAvoidanceWord',array('onsubmit'=>'return confirm("Are you sure?");')); ?>
	<table class="table_multi_fields table mt40">
  		<tr>
			<td class="text-l w100">Avoidance Word</td>
			<td class="text-l w100">Avoidance Word Yomi</td>
			<td class="text-l w100">Replace Word</td>
			<td class="text-l w100">Replace Word Yomi</td>
			<td class="text-l w30"></td>
		</tr>
		<tr>
		   	<td class="text-l" name="aw"><?php echo $this->Form->input('MAvoidanceWord.0.avoidance_word',array('label'=>'','autocomplete'=>'off','id'=>'avoidance_word','class'=>'form-control top noradius','autofocus'=>'autofocus'));?></td>
		    <td class="text-l" name="awy"><?php echo $this->Form->input('MAvoidanceWord.0.avoidance_word_yomi',array('label'=>'','autocomplete'=>'off','id'=>'avoidance_word_yomi','class'=>'form-control top noradius'));?></td>
			<td class="text-l" name="rw"><?php echo $this->Form->input('MAvoidanceWord.0.replace_word',array('label'=>'','autocomplete'=>'off','id'=>'replace_word','class'=>'form-control top noradius'));?></td>
			<td class="text-l" name="rwy"><?php echo $this->Form->input('MAvoidanceWord.0.replace_word_yomi',array('label'=>'','autocomplete'=>'off','id'=>'replace_word_yomi','class'=>'form-control top noradius'));?></td>
	  		<td class="text-l" name="">
	  			<a href="#" class="remove_field" delIndex="0" style="display:none;">Del</a>
	  			<?php echo $this->Form->input('MAvoidanceWord.0.creator', array('type' => 'hidden','value'=>$Usersuser_name)); ?>
	  			<?php echo $this->Form->input('MAvoidanceWord.0.create_time', array('type' => 'hidden','value'=>date('Y-m-d H:i:s'))); ?>
	  		</td>
	  	</tr>
  	</table> 

	<?php
   	/**** Message ****/
   	echo $this->Session->flash();
   	?>
	
	<div class="clearfix"></div>
	
	<div class="clearfix"></div>
	<div class="text-c mt30">
	<a href="#confirm-box" class="confirm-window btn-lg noradius btn-nocolor nodecor">Add</a>
	<?php //echo $this->Form->submit('Add',array('class'=>'btn-lg noradius btn-nocolor nodecor','name' => 'create'));?>
	</div>
	<?php echo $this->Html->link('Add More','#',array('href'=>'#','class'=>'btn-sm noradius btn-nocolor nodecor','id'=>'addRow')); ?>
<!-- 	<div class="clearfix"></div> -->
<!-- 	<div class="text-c mt30"> -->
	<?php //echo $this->Form->submit('Add',array('class'=>'btn-lg noradius btn-nocolor nodecor','name' => 'create'));?>
<!-- 	</div> -->
	
	<?php 
		/**** This for multiple field, data will be get in javascript.js ****/
		echo '<input type="hidden" id="current_user" value="' . $Usersuser_name . '" />'."\n";
		echo '<input type="hidden" id="current_time" value="' . date('Y-m-d H:i:s') . '" />'."\n";
	?>

	<div id="confirm-box" name="confirm-box" class="confirm-form" style="display: none;">
		<h4 style="margin: 30px 0px 0px 65px;color:red;">Please confirm your information before we save it !</h4>
		<table class="table_multi_fields_temp table m0a mt10 noborder" style="width:1010px!important; margin:0 auto;">
<!-- 		<tr><td colspan="5" class="noborder-t confirm_title text-c"></td></tr> -->
		<tr>
			<td class="text-l w100 noborder-t">Avoidance Word</td>
			<td class="text-l w100 noborder-t">Avoidance Word Yomi</td>
			<td class="text-l w100 noborder-t">Replace Word</td>
			<td class="text-l w100 noborder-t">Replace Word Yomi</td>
		</tr>
		<tr class="abc_0">
		   	<td class="text-l" name="aw"><input type="text" name="AvoidanceWord" id="avoidance_word_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled></td>
		    <td class="text-l" name="awy"><input type="text" name="AvoidanceWordYomi" id="avoidance_word_yomi_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled></td>
			<td class="text-l" name="rw"><input type="text" name="ReplaceWord" id="replace_word_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled></td>
			<td class="text-l" name="rwy"><input type="text" name="ReplaceWordYomi" id="replace_word_yomi_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled></td>
	  	</tr>

		</table>
		
		<div class="clearfix"></div>
		<div class="text-c mt30">
		<?php echo $this->Form->submit('Confirm',array('div' => false,'class'=>'btn-lg noradius btn-nocolor nodecor','name' => 'create','id'=>'submit','disabled'=>'disabled'));?>
		<input type="button" class="close-btn btn-lg noradius btn-nocolor nodecor ml40" value="Cancel">
		</div> 
	</div>